import java.util.Scanner;
public class Task19 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = 0;
		int sum = 0;
		int counter = 0;
		do{
			n = sc.nextInt();
		}while(n<0 || n>27);
		sc.close();
		
		for(int i=100;i<1000;i++){
			sum = i%10 + (i/10)%10 + (i/100)%10;
			if(sum > n)
				counter++;
			sum = 0;
		}
		System.out.println("The number is: " + counter);
		

	}

}
